<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
</body>
<script type="text/javascript">
    /*  var arr=[[1,2,3],[4,5,6],[7,8,9]];
      var reverse=arr[2].map(function (col,i) {
          return arr.map(function (row) {
              return row[i];
          });
      });
     // console.log(reverse);*/

    var arr = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
    var fun=function (value,index) {
        console.log(value[0]);
        return fun(value);
    }
</script>
</html>